
import {  defineStore } from 'pinia'
 
export const useStore = defineStore('user', {
  state: () => {
    return {
      UserInfoLists:"",
      list:[]
    }
  },
 
  getters: {
	  //获取个人基本信息
	  getUserInfo(state){
		  return state.UserInfoLists;
	  }
  },
  actions: {
   SETUSERINGO(data:any){
    
    this.UserInfoLists=data;
    console.log(data,this.UserInfoLists);
   }
  },
  persist: [
    {
      storage: sessionStorage,
      key: 'user-store',

      pick: ['UserInfoLists'],
    }
  ],
})
